#!/usr/local/bin/python3
#-*- coding:utf8 -*-
# Author Aaron 
# 2017-03-31 22:46:05

import RPi.GPIO as GPIO
import time

GPIO_PIN = 7
count = 10000000

GPIO.setmode(GPIO.BOARD)
GPIO.setup(GPIO_PIN,GPIO.OUT)

print("waiting 5 times...")
while count > 0:
    GPIO.output(GPIO_PIN,GPIO.HIGH)
    count = count - 1
    time.sleep(0.5)
    GPIO.output(GPIO_PIN,GPIO.LOW)
    time.sleep(0.5)
    print("count =",count)
print("exit...")
GPIO.cleanup()
